package com.wyf.exceptions;


import lombok.Data;

/**
 * 自定义异常： 参数异常
 */

@Data
public class ParamsException extends RuntimeException{
    private Integer code = 300;
    private String msg = "参数异常！";

    public ParamsException() {
        super("参数异常！");
    }

    public ParamsException(Integer code) {
        super("参数异常！");
        this.code = code;
    }

    public ParamsException(String msg) {
        super("参数异常！");
        this.msg = msg;
    }

    public ParamsException(Integer code, String msg) {
        super("参数异常！");
        this.code = code;
        this.msg = msg;
    }
}
